package com.buer.storage.business.service;


import com.buer.storage.business.domain.Area;
import com.buer.storage.business.domain.Warehouse;
import com.buer.storage.business.dto.DepartmentDto;
import com.buer.storage.business.dto.DepartmentSelectDto;
import com.buer.storage.business.dto.WarehouseDto;

import java.util.List;


public interface WarehouseService {
    //增加仓库
    int insert(WarehouseDto warehouseDto);
    //删除仓库
    int delete(int warehouseId);
    //修改仓库
    int update(Warehouse warehouse);
    //根据仓库id查询仓库信息
    Warehouse selectById(int warehouseId);
    //查询所有仓库
    List<Warehouse> findAll();
    //根据仓库id查询库区
    List<Area> findAllArea(int warehouseId);
    //根据仓库id查询库位
    List<DepartmentDto> findAllDepartment(int warehouseId);

    List<DepartmentSelectDto> findDepartById(Integer warehouseId);
}
